package frsf.cidisi.exercise.tpidemia.situationCalculus;

import frsf.cidisi.faia.agent.Action;
import frsf.cidisi.faia.agent.ActionFactory;

import frsf.cidisi.exercise.tpidemia.situationCalculus.actions.*;



public class ArqueologoActionFactory extends ActionFactory {

    private static ArqueologoActionFactory instance;

    private ArqueologoActionFactory() {
    }

    public static ArqueologoActionFactory getInstance() {
        if (instance == null) {
            instance = new ArqueologoActionFactory();
        }
        return instance;
    }

    @Override
    protected String endActionString() {
        return "noAction";
    }

   
     @Override
   	 protected Action stringToAction(String stringAction) {
        Action actionObject = null;
        
	if (stringAction.equals("tomartesoro")) 
            actionObject = new TomarTesoro();
        else if (stringAction.equals("viajaraaragaey")) 
            actionObject = new ViajarAAragaey();
        else if (stringAction.equals("viajaraase")) 
            actionObject = new ViajarAAse();
        else if (stringAction.equals("viajarabresol")) 
            actionObject = new ViajarABresol();
        else if (stringAction.equals("viajarabulovoe")) 
            actionObject = new ViajarABulovoe();                
        else if (stringAction.equals("viajaracabe")) 
            actionObject = new ViajarACabe();        
        else if (stringAction.equals("viajaracenede")) 
            actionObject = new ViajarACenede();
        else if (stringAction.equals("viajaraergintone")) 
            actionObject = new ViajarAErgintone();
        else if (stringAction.equals("viajaraicaedur")) 
            actionObject = new ViajarAIcaedur();
        else if (stringAction.equals("viajaramixocu")) 
            actionObject = new ViajarAMixocu();
        else if (stringAction.equals("viajaraperegaey")) 
            actionObject = new ViajarAPeregaey();
        else if (stringAction.equals("viajaravinizaile")) 
            actionObject = new ViajarAVinizaile();        
        return actionObject;
    }
}
